package feng.demo.service;

import feng.demo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    public User findByPhone(String phone);
    public List<User> findAll();
    List<User> findByPermid(Integer permid);
    User findByUid(Integer uid);
    int add(User user);
    int del(Integer uid);
    int update(User user);
    int findCount(Integer permid);
    User findByAccount(String account);
    List<User> findAllLimit(@Param("pagenum") Integer pagenum, @Param("lines")Integer lines);

    List<User> findByPermidLimit(@Param("permid") Integer permid,@Param("pagenum") Integer pagenum, @Param("lines")Integer lines);
    List<User> findByUser(User user);
    User findBypwd(User user);
}
